from concurrent.futures import ThreadPoolExecutor


# 线程任务
def task(a, b, c):
    print(a, b, c)


# 线程池
pool = ThreadPoolExecutor(max_workers=30)
# 提交任务
pool.submit(task, 1, 2, 3)
